﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004FB RID: 1275
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExchangeRogueRewardKeyScRsp : IMessage<ExchangeRogueRewardKeyScRsp>, IMessage, IEquatable<ExchangeRogueRewardKeyScRsp>, IDeepCloneable<ExchangeRogueRewardKeyScRsp>, IBufferMessage
	{
		// Token: 0x1700107E RID: 4222
		// (get) Token: 0x060039AE RID: 14766 RVA: 0x0009E801 File Offset: 0x0009CA01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExchangeRogueRewardKeyScRsp> Parser
		{
			get
			{
				return ExchangeRogueRewardKeyScRsp._parser;
			}
		}

		// Token: 0x1700107F RID: 4223
		// (get) Token: 0x060039AF RID: 14767 RVA: 0x0009E808 File Offset: 0x0009CA08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExchangeRogueRewardKeyScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001080 RID: 4224
		// (get) Token: 0x060039B0 RID: 14768 RVA: 0x0009E81A File Offset: 0x0009CA1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExchangeRogueRewardKeyScRsp.Descriptor;
			}
		}

		// Token: 0x060039B1 RID: 14769 RVA: 0x0009E821 File Offset: 0x0009CA21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyScRsp()
		{
		}

		// Token: 0x060039B2 RID: 14770 RVA: 0x0009E829 File Offset: 0x0009CA29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyScRsp(ExchangeRogueRewardKeyScRsp other) : this()
		{
			this.count_ = other.count_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060039B3 RID: 14771 RVA: 0x0009E85A File Offset: 0x0009CA5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyScRsp Clone()
		{
			return new ExchangeRogueRewardKeyScRsp(this);
		}

		// Token: 0x17001081 RID: 4225
		// (get) Token: 0x060039B4 RID: 14772 RVA: 0x0009E862 File Offset: 0x0009CA62
		// (set) Token: 0x060039B5 RID: 14773 RVA: 0x0009E86A File Offset: 0x0009CA6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x17001082 RID: 4226
		// (get) Token: 0x060039B6 RID: 14774 RVA: 0x0009E873 File Offset: 0x0009CA73
		// (set) Token: 0x060039B7 RID: 14775 RVA: 0x0009E87B File Offset: 0x0009CA7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060039B8 RID: 14776 RVA: 0x0009E884 File Offset: 0x0009CA84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExchangeRogueRewardKeyScRsp);
		}

		// Token: 0x060039B9 RID: 14777 RVA: 0x0009E892 File Offset: 0x0009CA92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExchangeRogueRewardKeyScRsp other)
		{
			return other != null && (other == this || (this.Count == other.Count && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060039BA RID: 14778 RVA: 0x0009E8D0 File Offset: 0x0009CAD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060039BB RID: 14779 RVA: 0x0009E928 File Offset: 0x0009CB28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060039BC RID: 14780 RVA: 0x0009E930 File Offset: 0x0009CB30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060039BD RID: 14781 RVA: 0x0009E93C File Offset: 0x0009CB3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Count != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Count);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060039BE RID: 14782 RVA: 0x0009E998 File Offset: 0x0009CB98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060039BF RID: 14783 RVA: 0x0009E9F0 File Offset: 0x0009CBF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExchangeRogueRewardKeyScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060039C0 RID: 14784 RVA: 0x0009EA40 File Offset: 0x0009CC40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060039C1 RID: 14785 RVA: 0x0009EA4C File Offset: 0x0009CC4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 32U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Count = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400169F RID: 5791
		private static readonly MessageParser<ExchangeRogueRewardKeyScRsp> _parser = new MessageParser<ExchangeRogueRewardKeyScRsp>(() => new ExchangeRogueRewardKeyScRsp());

		// Token: 0x040016A0 RID: 5792
		private UnknownFieldSet _unknownFields;

		// Token: 0x040016A1 RID: 5793
		public const int CountFieldNumber = 4;

		// Token: 0x040016A2 RID: 5794
		private uint count_;

		// Token: 0x040016A3 RID: 5795
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040016A4 RID: 5796
		private uint retcode_;
	}
}
